package com.example.admin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.admin.entity.AdminLogin;
import com.example.admin.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper  extends BaseMapper<Customer> {


    List<Customer> getCustomerList();

    int updateRole(@Param("customer") Customer customer);

    Customer getCustomerName(@Param("customerName") String customerName);

    AdminLogin login(@Param("admin") AdminLogin adminLogin);

    int insertAdmin(@Param("admin") AdminLogin adminLogin);

    AdminLogin register(@Param("admin") AdminLogin adminLogin);
}
